package com.invengo.library_db.utils;

import com.invengo.library_db.BuildConfig;
import com.invengo.library_db.GreenDaoManager;
import com.invengo.library_db.entity.module_check.BookCarBean;

public class DataTestUtils {
    public static void insertCar() {
        if (!BuildConfig.userTestData)
            return;
        BookCarBean abc1234567 = GreenDaoManager.getInstance().getBookCarbyId("ABC1234567");
        if (abc1234567 != null) {
            System.out.println("abc1234567 = " + abc1234567);
            return;
        }
        BookCarBean bean = new BookCarBean();
        bean.setCarId("ABC1234567");
        bean.setCarName("书车0001");
        GreenDaoManager.getInstance().insertBookCar(bean);
    }
}
